//
//  ScoreViewController.m
//  预购清单
//
//  Created by  on 2022/10/16.
//

#import "ScoreViewController.h"

@interface ScoreViewController ()
@property (strong, nonatomic) IBOutlet UIView *bgview;

@end

@implementation ScoreViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}
- (IBAction)actionForBtn:(UIButton *)sender {
    if (sender == nil || sender.tag <= 200) {
        return [self dismissViewControllerAnimated:NO completion:nil];
    }
    for (int i = 201; i < 206; i ++) {
        UIButton *btn = [self.bgview viewWithTag:i];
        btn.selected = btn.tag <= sender.tag;
    }
    [self performSelector:@selector(actionForBtn:) withObject:nil afterDelay:1];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
